﻿using Chloe;
using Chloe.SqlServer;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.DbContext
{
    public class SqlserverDbContext
    {
        public static IDbContext CreateContext()
        {
            string connString = ConfigurationManager.AppSettings["ConnectionString"];           
            MsSqlContext dbContext = new MsSqlContext(connString);
            dbContext.DefaultDbContextProvider.Session.CommandTimeout = 300;
            return dbContext;
        }
    }
}
